package com.xiyu.service.vo.market.marketTemplate;

import com.xiyu.service.vo.market.template.baseVO.MarketTemplateBase;
import com.xiyu.service.vo.market.template.baseVO.MarketTemplateContentBase;
import com.xiyu.service.vo.market.template.baseVO.MarketTemplateResourceBase;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;

import jakarta.validation.Valid;
import com.xiyu.service.enums.common.CommonStatusEnum;
import com.xiyu.service.framework.validation.InEnum;

@Schema(description = "获取单个营销模板")
@Data
@AllArgsConstructor
public class MarketTemplateSingleGetOutput extends MarketTemplateBase {

    @Schema(description = "营销模板主键ID")
    private Long id;

    @Schema(description = "模板资源")
    @Valid
    private List<resource> resources;

    @Schema(description = "模板正文")
    @Valid
    private content content;

    @Schema(description = "模板资源")
    @Data
    public static class resource extends MarketTemplateResourceBase {
    }

    @Schema(description = "模板正文")
    @Data
    public static class content extends MarketTemplateContentBase {

        @Schema(description = "模板正文主键ID")
        private Long id;
    }
}